<template>
  <div>
      <h1>父组件</h1>
      <hr>
      <play-one :mylist="mylist" :myname="name"
      :year="2025" :myhobby="hobby" 
      :sex="sex" @sendMsg="getMsg" @close="myclose"></play-one>
  </div>
</template>
<script>
import playOne from './child/playOne.vue'
export default {
    components:{playOne},
    data(){
      return {
        name:"张朝阳",
        sex:"男",
        mylist:["张朝阳","丁磊","李彦宏"],
        hobby:["篮球","足球","羽毛球"]
      }
    },
    methods:{
      getMsg(msg){
        console.log(msg)
      },
      myclose(){
        console.log("关闭")
      }
    }
}
</script>